<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
 <table style="BORDER-COLLAPSE: collapse" borderColor=#000000 height=40 cellPadding=1 width=600 align=center border=1>
    <tr><th colspan="4">用户管理</th></tr>
    <tr><td>用户名</td><td>锁定</td><td>角色名称</td><td>操作</td></tr>
     <?php if(is_array($userlist)): $i = 0; $__LIST__ = $userlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
     <td><?php echo ($vo["username"]); ?></td>
     <td>
     <?php if($vo['lock']): ?>锁定 
       <?php else: ?>
       未锁定<?php endif; ?>
     </td>
     <td>
     <?php if($vo['username'] == C('RBAC_SUPPERADMIN')): ?>超级管理员
     <?php else: ?>
     <ul style="list-style: none;">
     <?php if(is_array($vo["role"])): $i = 0; $__LIST__ = $vo["role"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$role): $mod = ($i % 2 );++$i;?><li><?php echo ($role["name"]); ?>(<?php echo ($role["remark"]); ?>)</li><?php endforeach; endif; else: echo "" ;endif; ?>
     </ul><?php endif; ?>
     </td>
     <td><a href="#">修改</a><a href="#" style="float:right;">删除</a></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
 </table>
</body>
</html>